package com.taotao.search.server.service;

import com.taotao.search.server.domain.SearchResult;
import com.taotao.search.request.SearchParam;
import com.taotao.search.response.ProductSkuResponse;

import java.io.IOException;
import java.util.List;

public interface ProductService {

    /**
    * @Author ZhangYuQi
    * @Description 同步上架
    * @Date 下午4:50 2024/12/20
    * @Param [products]
    * @return
    */
    void saveProduct(List<ProductSkuResponse> products);

    /**
    * @Author ZhangYuQi
    * @Description 搜索
    * @Date 下午4:51 2024/12/20
    * @Param [param]
    * @return
    */
    SearchResult search(SearchParam param) throws IOException;
}
